<#include "/includes/header.ftl">
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
	<TD width="120" valign="top"><#include "/includes/leftbar.ftl"></TD>	
	<TD valign="top" width="90%">
		<#-- Main Content-->
		<table width="100%" border="0">
		  <tr>
		    <th colspan="2" align='center'>店铺服务-修改店铺所属的类别（地区类别、主营业务类别）</th>
		  </tr>
		  <tr>
		    <th colspan="2" align='center'><hr></th>
		  </tr>
		  <#if siteDetail?has_content>
		  <tr>
		    <th width="1%" nowrap="NOWRAP" scope="row"><div align="right"><b>店铺名称</b>: </div></th>
		    <td width="90%">${siteDetail.name?default("No-Name")}</td>
		  </tr>
		  <tr>
		    <th width="1%" nowrap="NOWRAP" scope="row" valign="top"><div align="right"><b>地区类别</b>： </div></th>
		    <td width="90%">
		    	<Table width="100%">
					  <#if storeAreaCategoryTrails?has_content>
							<#list storeAreaCategoryTrails as storePostionCategoryTrail>
							<#assign leafCategory="">
						  <tr>
						    <td>      
					          <div align="left">					          
											<#list storePostionCategoryTrail as g>
												<#assign leafCategory=g>
												<A href='<@spring.url "/listcategory2store.jsp?sgid=${g.categoryId}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
											</#list>
					          </div>
						    </td>
						    <td nowrap="true"><A href='<@spring.url "/updatemyservedstorecategory.asp?ssid=${siteDetail.sysId}&sgid=${leafCategory.categoryId}&method=del"/>'>将店铺从本类中删除</A></td>
						  </tr>
						  </#list>
					  </#if>
		    	</Table>
		    	
		    	
				  <#if primaryAreaCategoryTrail?has_content>
			    	<Table>
			    		<tr>
			    			<td><B>将店铺加入到下面的地区类别</B></td>
			    		</tr>
			    		<tr>
			    			<td width="90%">
					          <div align="left">
											<#list primaryAreaCategoryTrail as g>
												<#assign leafCategory=g>
												<A href='<@spring.url "/updatemyservedstorecategory.asp?ssid=${siteDetail.sysId}&areagid=${g.categoryId}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
											</#list>
					          </div>
								</td>
								<#if areaChildCategoryListGroups?has_content>
									<td></td>
								<#else>
									<td nowrap="true"><A href='<@spring.url "/updatemyservedstorecategory.asp?ssid=${siteDetail.sysId}&areagid=${leafCategory.categoryId}&method=add"/>'>将店铺加入本类</A></td>
								</#if>								
							</tr>
							<#if areaChildCategoryListGroups?has_content>
								<#list areaChildCategoryListGroups as areaChildCategoryList>
									<tr><td colspan="2">
										<#list areaChildCategoryList as g>
				    					<A href='<@spring.url "/updatemyservedstorecategory.asp?ssid=${siteDetail.sysId}&areagid=${g.categoryId}"/>'>${g.name?default("No-Category-Name")}</A>&nbsp;&nbsp;&nbsp;&nbsp;
				    				</#list>
				    				</td>	
			    				</tr>
			    			</#list>
			    		</#if>
			    	</Table>
				  </#if>		    		
		    </td>
		  </tr>
		  <tr>
		    <th colspan="2" align='center'><hr></th>
		  </tr>
		  <tr>
		    <th width="1%" nowrap="NOWRAP" scope="row" valign="top"><div align="right"><b>主营业务类别</b>： </div></th>
		    <td width="90%">
		    	<Table>
					  <#if storeBusinessCategoryTrails?has_content>
							<#list storeBusinessCategoryTrails as storePostionCategoryTrail>
							<#assign leafCategory="">
						  <tr>
						    <td width="99%">      
					          <div align="left">					          
											<#list storePostionCategoryTrail as g>
												<#assign leafCategory=g>
												<A href='<@spring.url "/listcategory2store.jsp?sgid=${g.categoryId}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
											</#list>
					          </div>
						    </td>
						    <td><A href='<@spring.url "/updatemyservedstorecategory.asp?ssid=${siteDetail.sysId}&sgid=${leafCategory.categoryId}&method=del"/>'>将店铺从本类中删除</A></td>
						  </tr>
						  </#list>
					  </#if>
		    	</Table>
		    	
		    	
				  <#if primaryBusinessCategoryTrail?has_content>
			    	<Table width="100%">
			    		<tr>
			    			<td><B>将店铺加入到下面的主营业务类别</B></td>
			    		</tr>
			    		<tr>
			    			<td>
					          <div align="left">
											<#list primaryBusinessCategoryTrail as g>
												<#assign leafCategory=g>
												<A href='<@spring.url "/updatemyservedstorecategory.asp?ssid=${siteDetail.sysId}&bizgid=${g.categoryId}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
											</#list>
					          </div>
								</td>
								<#if businessChildCategoryListGroups?has_content>
								<#else>
									<td nowrap="true"><A href='<@spring.url "/updatemyservedstorecategory.asp?ssid=${siteDetail.sysId}&bizgid=${leafCategory.categoryId}&method=add"/>'>将店铺加入本类</A></td>
								</#if>								
							</tr>
							<#if businessChildCategoryListGroups?has_content>
								<#list businessChildCategoryListGroups as bizChildCategoryList>
									<tr><td colspan="2">
										<#list bizChildCategoryList as g>
				    					<A href='<@spring.url "/updatemyservedstorecategory.asp?ssid=${siteDetail.sysId}&bizgid=${g.categoryId}"/>'>${g.name?default("No-Category-Name")}</A>&nbsp;&nbsp;&nbsp;&nbsp;
				    				</#list>
				    				</td>	
			    				</tr>
			    			</#list>
			    		</#if>
			    	</Table>
				  </#if>		    		
		  </tr>
		  </#if>
		</table>
		<#-- /Main Content-->
	</TD>	
	<TD valign="top"><#include "/includes/rightbar.ftl"></TD>
</TR>
</TABLE>

<#include "/includes/footer.ftl">